@ECHO OFF
ECHO **** Install Content database solution ****
"%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o addsolution -filename Wsp365.AutomaticContentDatabaseSelector.wsp
ECHO **** Next action deploy solution ****
ECHO !!!! iisreset on all servers when you press enter !!!!
pause
"%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o deploysolution -name Wsp365.AutomaticContentDatabaseSelector.wsp -immediate -allowgacdeployment -allowcaspolicies
ECHO *** Completed. Please activate the feature by the following steps: ***
ECHO 1. Open the CA
ECHO 2. Select System Settings
ECHO 3. Manage farm features
ECHO 4. Activate Wsp365.AutomaticContentDatabaseSelector SelectSmallestContentDatabase